using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SnsAction : GeneratedMessageLite<SnsAction, SnsAction.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SnsAction, SnsAction.Builder>
		{
			private bool resultIsReadOnly;
			private SnsAction result;
			protected override SnsAction.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SnsAction MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SnsAction DefaultInstanceForType
			{
				get
				{
					return SnsAction.DefaultInstance;
				}
			}
			public string FromUsername
			{
				get
				{
					return this.result.FromUsername;
				}
				set
				{
					this.SetFromUsername(value);
				}
			}
			public string ToUsername
			{
				get
				{
					return this.result.ToUsername;
				}
				set
				{
					this.SetToUsername(value);
				}
			}
			public string FromNickname
			{
				get
				{
					return this.result.FromNickname;
				}
				set
				{
					this.SetFromNickname(value);
				}
			}
			public string ToNickname
			{
				get
				{
					return this.result.ToNickname;
				}
				set
				{
					this.SetToNickname(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public uint Source
			{
				get
				{
					return this.result.Source;
				}
				set
				{
					this.SetSource(value);
				}
			}
			public uint CreateTime
			{
				get
				{
					return this.result.CreateTime;
				}
				set
				{
					this.SetCreateTime(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public int ReplyCommentId
			{
				get
				{
					return this.result.ReplyCommentId;
				}
				set
				{
					this.SetReplyCommentId(value);
				}
			}
			public int CommentId
			{
				get
				{
					return this.result.CommentId;
				}
				set
				{
					this.SetCommentId(value);
				}
			}
			public Builder()
			{
				this.result = SnsAction.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SnsAction cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SnsAction PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SnsAction other = this.result;
					this.result = new SnsAction();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SnsAction.Builder Clear()
			{
				this.result = SnsAction.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SnsAction.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SnsAction.Builder(this.result);
				}
				return new SnsAction.Builder().MergeFrom(this.result);
			}
			public override SnsAction BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SnsAction.Builder MergeFrom(IMessageLite other)
			{
				if (other is SnsAction)
				{
					return this.MergeFrom((SnsAction)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SnsAction.Builder MergeFrom(SnsAction other)
			{
				return this;
			}
			public override SnsAction.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SnsAction.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SnsAction._snsActionFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SnsAction._snsActionFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 34u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								this.result.hasFromUsername = input.ReadString(ref this.result.fromUsername_);
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								this.result.hasToUsername = input.ReadString(ref this.result.toUsername_);
								continue;
							}
							if (num3 == 26u)
							{
								this.result.hasFromNickname = input.ReadString(ref this.result.fromNickname_);
								continue;
							}
							if (num3 == 34u)
							{
								this.result.hasToNickname = input.ReadString(ref this.result.toNickname_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 56u)
						{
							if (num3 == 40u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
							if (num3 == 48u)
							{
								this.result.hasSource = input.ReadUInt32(ref this.result.source_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
								continue;
							}
						}
						else
						{
							if (num3 == 66u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
							if (num3 == 72u)
							{
								this.result.hasReplyCommentId = input.ReadInt32(ref this.result.replyCommentId_);
								continue;
							}
							if (num3 == 80u)
							{
								this.result.hasCommentId = input.ReadInt32(ref this.result.commentId_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SnsAction.Builder SetFromUsername(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromUsername = true;
				this.result.fromUsername_ = value;
				return this;
			}
			public SnsAction.Builder ClearFromUsername()
			{
				this.PrepareBuilder();
				this.result.hasFromUsername = false;
				this.result.fromUsername_ = "";
				return this;
			}
			public SnsAction.Builder SetToUsername(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUsername = true;
				this.result.toUsername_ = value;
				return this;
			}
			public SnsAction.Builder ClearToUsername()
			{
				this.PrepareBuilder();
				this.result.hasToUsername = false;
				this.result.toUsername_ = "";
				return this;
			}
			public SnsAction.Builder SetFromNickname(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromNickname = true;
				this.result.fromNickname_ = value;
				return this;
			}
			public SnsAction.Builder ClearFromNickname()
			{
				this.PrepareBuilder();
				this.result.hasFromNickname = false;
				this.result.fromNickname_ = "";
				return this;
			}
			public SnsAction.Builder SetToNickname(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToNickname = true;
				this.result.toNickname_ = value;
				return this;
			}
			public SnsAction.Builder ClearToNickname()
			{
				this.PrepareBuilder();
				this.result.hasToNickname = false;
				this.result.toNickname_ = "";
				return this;
			}
			public SnsAction.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public SnsAction.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public SnsAction.Builder SetSource(uint value)
			{
				this.PrepareBuilder();
				this.result.hasSource = true;
				this.result.source_ = value;
				return this;
			}
			public SnsAction.Builder ClearSource()
			{
				this.PrepareBuilder();
				this.result.hasSource = false;
				this.result.source_ = 0u;
				return this;
			}
			public SnsAction.Builder SetCreateTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = true;
				this.result.createTime_ = value;
				return this;
			}
			public SnsAction.Builder ClearCreateTime()
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = false;
				this.result.createTime_ = 0u;
				return this;
			}
			public SnsAction.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public SnsAction.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
			public SnsAction.Builder SetReplyCommentId(int value)
			{
				this.PrepareBuilder();
				this.result.hasReplyCommentId = true;
				this.result.replyCommentId_ = value;
				return this;
			}
			public SnsAction.Builder ClearReplyCommentId()
			{
				this.PrepareBuilder();
				this.result.hasReplyCommentId = false;
				this.result.replyCommentId_ = 0;
				return this;
			}
			public SnsAction.Builder SetCommentId(int value)
			{
				this.PrepareBuilder();
				this.result.hasCommentId = true;
				this.result.commentId_ = value;
				return this;
			}
			public SnsAction.Builder ClearCommentId()
			{
				this.PrepareBuilder();
				this.result.hasCommentId = false;
				this.result.commentId_ = 0;
				return this;
			}
		}
		public const int FromUsernameFieldNumber = 1;
		public const int ToUsernameFieldNumber = 2;
		public const int FromNicknameFieldNumber = 3;
		public const int ToNicknameFieldNumber = 4;
		public const int TypeFieldNumber = 5;
		public const int SourceFieldNumber = 6;
		public const int CreateTimeFieldNumber = 7;
		public const int ContentFieldNumber = 8;
		public const int ReplyCommentIdFieldNumber = 9;
		public const int CommentIdFieldNumber = 10;
		private static readonly SnsAction defaultInstance;
		private static readonly string[] _snsActionFieldNames;
		private static readonly uint[] _snsActionFieldTags;
		private bool hasFromUsername;
		private string fromUsername_ = "";
		private bool hasToUsername;
		private string toUsername_ = "";
		private bool hasFromNickname;
		private string fromNickname_ = "";
		private bool hasToNickname;
		private string toNickname_ = "";
		private bool hasType;
		private uint type_;
		private bool hasSource;
		private uint source_;
		private bool hasCreateTime;
		private uint createTime_;
		private bool hasContent;
		private string content_ = "";
		private bool hasReplyCommentId;
		private int replyCommentId_;
		private bool hasCommentId;
		private int commentId_;
		private int memoizedSerializedSize = -1;
		public static SnsAction DefaultInstance
		{
			get
			{
				return SnsAction.defaultInstance;
			}
		}
		public override SnsAction DefaultInstanceForType
		{
			get
			{
				return SnsAction.DefaultInstance;
			}
		}
		protected override SnsAction ThisMessage
		{
			get
			{
				return this;
			}
		}
		public string FromUsername
		{
			get
			{
				return this.fromUsername_;
			}
		}
		public string ToUsername
		{
			get
			{
				return this.toUsername_;
			}
		}
		public string FromNickname
		{
			get
			{
				return this.fromNickname_;
			}
		}
		public string ToNickname
		{
			get
			{
				return this.toNickname_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public uint Source
		{
			get
			{
				return this.source_;
			}
		}
		public uint CreateTime
		{
			get
			{
				return this.createTime_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public int ReplyCommentId
		{
			get
			{
				return this.replyCommentId_;
			}
		}
		public int CommentId
		{
			get
			{
				return this.commentId_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasType && this.hasSource;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasFromUsername)
				{
					num += CodedOutputStream.ComputeStringSize(1, this.FromUsername);
				}
				if (this.hasToUsername)
				{
					num += CodedOutputStream.ComputeStringSize(2, this.ToUsername);
				}
				if (this.hasFromNickname)
				{
					num += CodedOutputStream.ComputeStringSize(3, this.FromNickname);
				}
				if (this.hasToNickname)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.ToNickname);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.Type);
				}
				if (this.hasSource)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.Source);
				}
				if (this.hasCreateTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.CreateTime);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(8, this.Content);
				}
				if (this.hasReplyCommentId)
				{
					num += CodedOutputStream.ComputeInt32Size(9, this.ReplyCommentId);
				}
				if (this.hasCommentId)
				{
					num += CodedOutputStream.ComputeInt32Size(10, this.CommentId);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SnsAction()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] snsActionFieldNames = SnsAction._snsActionFieldNames;
			if (this.hasFromUsername)
			{
				output.WriteString(1, snsActionFieldNames[4], this.FromUsername);
			}
			if (this.hasToUsername)
			{
				output.WriteString(2, snsActionFieldNames[8], this.ToUsername);
			}
			if (this.hasFromNickname)
			{
				output.WriteString(3, snsActionFieldNames[3], this.FromNickname);
			}
			if (this.hasToNickname)
			{
				output.WriteString(4, snsActionFieldNames[7], this.ToNickname);
			}
			if (this.hasType)
			{
				output.WriteUInt32(5, snsActionFieldNames[9], this.Type);
			}
			if (this.hasSource)
			{
				output.WriteUInt32(6, snsActionFieldNames[6], this.Source);
			}
			if (this.hasCreateTime)
			{
				output.WriteUInt32(7, snsActionFieldNames[2], this.CreateTime);
			}
			if (this.hasContent)
			{
				output.WriteString(8, snsActionFieldNames[1], this.Content);
			}
			if (this.hasReplyCommentId)
			{
				output.WriteInt32(9, snsActionFieldNames[5], this.ReplyCommentId);
			}
			if (this.hasCommentId)
			{
				output.WriteInt32(10, snsActionFieldNames[0], this.CommentId);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasFromUsername)
			{
				num ^= this.fromUsername_.GetHashCode();
			}
			if (this.hasToUsername)
			{
				num ^= this.toUsername_.GetHashCode();
			}
			if (this.hasFromNickname)
			{
				num ^= this.fromNickname_.GetHashCode();
			}
			if (this.hasToNickname)
			{
				num ^= this.toNickname_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasSource)
			{
				num ^= this.source_.GetHashCode();
			}
			if (this.hasCreateTime)
			{
				num ^= this.createTime_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasReplyCommentId)
			{
				num ^= this.replyCommentId_.GetHashCode();
			}
			if (this.hasCommentId)
			{
				num ^= this.commentId_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SnsAction snsAction = value as SnsAction;
			return snsAction != null && (this.hasFromUsername == snsAction.hasFromUsername && (!this.hasFromUsername || this.fromUsername_.Equals(snsAction.fromUsername_))) && (this.hasToUsername == snsAction.hasToUsername && (!this.hasToUsername || this.toUsername_.Equals(snsAction.toUsername_))) && (this.hasFromNickname == snsAction.hasFromNickname && (!this.hasFromNickname || this.fromNickname_.Equals(snsAction.fromNickname_))) && (this.hasToNickname == snsAction.hasToNickname && (!this.hasToNickname || this.toNickname_.Equals(snsAction.toNickname_))) && (this.hasType == snsAction.hasType && (!this.hasType || this.type_.Equals(snsAction.type_))) && (this.hasSource == snsAction.hasSource && (!this.hasSource || this.source_.Equals(snsAction.source_))) && (this.hasCreateTime == snsAction.hasCreateTime && (!this.hasCreateTime || this.createTime_.Equals(snsAction.createTime_))) && (this.hasContent == snsAction.hasContent && (!this.hasContent || this.content_.Equals(snsAction.content_))) && (this.hasReplyCommentId == snsAction.hasReplyCommentId && (!this.hasReplyCommentId || this.replyCommentId_.Equals(snsAction.replyCommentId_))) && (this.hasCommentId == snsAction.hasCommentId && (!this.hasCommentId || this.commentId_.Equals(snsAction.commentId_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("FromUsername", this.hasFromUsername, this.fromUsername_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("ToUsername", this.hasToUsername, this.toUsername_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("FromNickname", this.hasFromNickname, this.fromNickname_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("ToNickname", this.hasToNickname, this.toNickname_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("Source", this.hasSource, this.source_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("CreateTime", this.hasCreateTime, this.createTime_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("ReplyCommentId", this.hasReplyCommentId, this.replyCommentId_, writer);
			GeneratedMessageLite<SnsAction, SnsAction.Builder>.PrintField("CommentId", this.hasCommentId, this.commentId_, writer);
		}
		public static SnsAction ParseFrom(byte[] data)
		{
			return SnsAction.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SnsAction MakeReadOnly()
		{
			return this;
		}
		public static SnsAction.Builder CreateBuilder()
		{
			return new SnsAction.Builder();
		}
		public override SnsAction.Builder ToBuilder()
		{
			return SnsAction.CreateBuilder(this);
		}
		public override SnsAction.Builder CreateBuilderForType()
		{
			return new SnsAction.Builder();
		}
		public static SnsAction.Builder CreateBuilder(SnsAction prototype)
		{
			return new SnsAction.Builder(prototype);
		}
		static SnsAction()
		{
			SnsAction.defaultInstance = new SnsAction().MakeReadOnly();
			SnsAction._snsActionFieldNames = new string[]
			{
				"CommentId",
				"Content",
				"CreateTime",
				"FromNickname",
				"FromUsername",
				"ReplyCommentId",
				"Source",
				"ToNickname",
				"ToUsername",
				"Type"
			};
			SnsAction._snsActionFieldTags = new uint[]
			{
				80u,
				66u,
				56u,
				26u,
				10u,
				72u,
				48u,
				34u,
				18u,
				40u
			};
			object.ReferenceEquals(micromsg.Proto.SnsAction.Descriptor, null);
		}
	}
}
